<?php
/**
 * The template for displaying search results pages.
 *
 * @package EverBox
 */

get_header(); ?>

<div id="primary" class="left-column">
	<main id="main" class="site-main" role="main">

                <?php if ( have_posts() ) : ?>

                        <header class="search-header">
                                <h1 class="search-title">
                                    <?php printf( __( 'Search Results for: %s', 'everbox' ), '<span>' . get_search_query() . '</span>' ); ?>
                                </h1>
                        </header>
                        <!-- END .search-header -->

		<?php 
                    while ( have_posts() ) : the_post(); 
                        get_template_part( 'content', '' );
                    endwhile; 
                                everbox_posts_pagination(); 

                    else : 
                        get_template_part( 'content', 'none' );  

                    endif; 
               ?>

	</main>
	<!-- END #main -->
        <div class="page_navi"><?php par_pagenavi(9); ?></div>
</div>
<!-- END #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
